FROM php:7.4-cli

ADD workerman.tar /data/server/workerman-chat/


WORKDIR /data/server/workerman-chat/

RUN docker-php-source extract \
    # do important things \
    && docker-php-ext-install pcntl \
    && docker-php-source delete \
    && chmod +x  ./run.sh



CMD /bin/bash
